# Contributor: Stacy Harper <contact@stacyharper.net>
# Maintainer: Stacy Harper <contact@stacyharper.net>
pkgname=xprintidle
pkgver=0.2.4
pkgrel=0
pkgdesc="Query X server for user's idle time and print it in stdout"
url="https://github.com/g0hl1n/xprintidle"
arch="all"
license="GPL-2.0-only"
makedepends="meson libx11-dev libxext-dev libxscrnsaver-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
25f92524bea5e4f5db3883f74157e92056c9e1871cf0effe6800bd26ddffb9037e8246b1bffe282b84fa776f4eb9988838d2fd7c770d7a5f2b3ce489b8d7fdc8  xprintidle-0.2.4.tar.gz
"
